home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 095 / rbbscnv.arc / FMS-CONV.ARC / FMS.DOC < prev    next >
Text File  |  1987-03-14  |  13KB  |  297 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.               Converting your RBBS to the File Management System (FMS)
  8.                   By Loren D. Jones, Fargo IBM PC Users Group RBBS
  9.  
  10.  
  11.         RBBS-PC version  15.1A adds  a significant enhancement to RBBS with
  12.      the new File Management System (FMS).   FMS  is a  single fixed length
  13.      random access file containing all information normally contained in an
  14.      RBBS download directory  (.DIR)  with  the  addition  of  the specific
  15.      category information.   Users  may list  all files or just those files
  16.      contained in a specific directory, just as they have always done.  Use
  17.      of FMS  is virtually  transparent to the user, with the exception that
  18.      the S)can feature works significantly faster  and they  always see the
  19.      newest files on the system first!
  20.  
  21.          To convert a non-FMS system to FMS requires several steps.  I will
  22.      explain the steps and the basis for each,  then will  walk you through
  23.      it  step-by-step.    First,  all  of  the  current directories must be
  24.      converted  into  fixed  length  records  and  combined.    The program
  25.      CNVDIR.EXE is  provided for  this purpose,  although I  will suggest a
  26.      slight deviation from the parameters  suggested  in  CNVDIR.DOC.   The
  27.      changes I  suggest are  due to FMS' fixed length directory file, which
  28.      means care must be exercised to maintain the integrity of  the file by
  29.      assuring  constant  field  (line)  lengths.   Any character mistakenly
  30.      added or deleted in careless editing will throw  all the  records off.
  31.      The  easiest  way  to  minimize  the  chance  of  this occurring is to
  32.      carefully structure  your file  such that  the last  character in each
  33.      record is  a visible,  non-space character  and to  use an editor that
  34.      makes such records readily visible.  I  use  Norton's  Editor (NE.COM)
  35.      which works  well with  fixed length records.  Column 80 is the CR/LF,
  36.      allowing you to run the cursor up and down this column to  quickly see
  37.      if  any  files  exceed  the  limit.  The Norton editor displays little
  38.      double-arrows if the line exceeds the  80 characters  being displayed.
  39.      The beauty  of FMS being set up in this manner is the fact that it can
  40.      be easily edited with many editors while having the benefits  of being
  41.      a random access file.
  42.  
  43.          I recommend using a 43 character description and a three character
  44.      category designation.  If  you use  numbered directories,  use a three
  45.      character string  to represent  the category, i.e. 001, 010, 015, 095,
  46.      etc.  Avoid using  any designation  scheme that  uses a  space for the
  47.      last character  in the  record, as  it is too easy to miss a truncated
  48.      line.
  49.  
  50.          Once converted you must sort the master FMS directory.   All files
  51.      must be in date sequence (earliest to latest) for the proper operation
  52.      of FMS, since it keys  on  dates  when  searching  through  the master
  53.      directory.   I recommend  using QSORT  for the  sort, since it handles
  54.      multiple key fields.  You will need  to  key  on  the  year,  then the
  55.      month/day when sorting.
  56.  
  57.          Finally, you  must go  into config  and set certain options before
  58.  
  59.  
  60.                             - Page 1 -
  61.  
  62.  
  63.  
  64.  
  65.  
  66.      running RBBS.  Here are the steps to  get FMS  up and  running on your
  67.      pre-15.1A system:
  68.  
  69.      1.   Get   all   your   directory   files  together  in  your  working
  70.      subdirectory, which should also  include CNVDIR.EXE.   Have  access to
  71.      your favorite editor.
  72.  
  73.      2.   Create  your  DIR.CAT  file,  which  is RBBS' translate table for
  74.      associating directory designations and descriptions with  the category
  75.      code.  Make sure your category code is three characters in length!  If
  76.      you have directories with descriptive names, your DIR.CAT  should look
  77.      like this:
  78.  
  79.          "GAMES","GAM","Games and Entertainment"
  80.          "FILES","FUT","File Utilities"
  81.          "LOTUS","LOT","Lotus Spreadsheets & Utilities"
  82.          "RBBS","RBB","RBBS-PC Files & Utilities"
  83.  
  84.           Of course,  the designations  are entirely up to you.  If you use
  85.      numbered directories, your DIR.CAT should look something like this:
  86.  
  87.          "1","001","Communications"
  88.          "2","002","Word Processing and Editors"
  89.          "10","010","Games and Entertainment"
  90.          "95","095","RBBS-PC System Files"
  91.  
  92.      3.  Invoke CNVDIR with the following command:
  93.  
  94.                    CNVDIR 43 dir.cat master.dir DIR
  95.  
  96.          This translates as follows:
  97.  
  98.               43 =  Number of characters per description
  99.          DIR.CAT =  The file you just created listing your categories
  100.       MASTER.DIR =  Your master FMS directory, whatever you named it.
  101.              DIR =  Your normal directory extension, i.e. GAMES.DIR, 1.DIR,
  102.                     etc.
  103.  
  104.           This  will  cause  CNVDIR  to  go through all of your .DIR files,
  105.      strip unnecessary header lines,  and place  each directory  entry into
  106.      the proper  fixed length format, insert with category designation, and
  107.      add it to the master directory.  The process is very quick!
  108.  
  109.      4.   You must now sort the master file into date order.  I suggest the
  110.      program QSORT with the following format:
  111.  
  112.           QSORT master.dir /30:2 /24:5
  113.  
  114.           This tells QSORT to sort first by year, then the Month/Day.  Make
  115.      sure you have plenty of disk space if your master.dir is large!
  116.  
  117.  
  118.  
  119.                             - Page 2 -
  120.  
  121.  
  122.  
  123.  
  124.  
  125.      5.   Now you may want to  go  through  and  edit  the  listing  of any
  126.      multi-part files.   Since  FMS reads the master.dir file from the last
  127.      record back to the  first, multi-part  files should  be in  a last-in,
  128.      first-out order.  Your master file should look like this:
  129.  
  130.  
  131. CIA.BAS         13786  11-23-82  Adventure game                             010
  132. MONITOR.ARC     27502  12-04-82  Aids in development of BASIC prgms         007
  133. GRAF-PIX.ARC    24478  12-20-82  Create excellent graphics on PC            008
  134. YAHTZEE.BAS     16356  01-01-83  The game - Nice!                           010
  135. PLAYMATE.PQC     2642  01-01-83  Another poster                             008
  136. NUDE1.PQS        7983  01-01-83  Poster                                     008
  137. PCWRITE3.ARC    94871  01-01-83  PC-Write - 3 of 3                          001
  138. PCWRITE2.ARC   105021  01-01-83  PC-Write - 2 of 3                          001
  139. PCWRITE1.ARC    85983  01-01-83  PC-Write - 1 of 3                          001
  140. HOPPER.BAS       4995  01-01-83  Frogger look-a-like game                   010
  141. HANGMAN.BAS      3686  01-01-83  Fun hangman game - mono display            010
  142. GUITAR.BAS       1152  01-01-83  Tune your guitar with this one             008
  143.                                                                               ^
  144. Note that the last visible character is in position 79 -----------------------|
  145.  
  146.      THIS FORMAT  IS CRITICAL!  Your master.dir file MUST match this format
  147.      for this configuration of FMS to work properly!
  148.  
  149.      6.   Create a file called  UPCAT.HLP.   A couple  of sample  files are
  150.      included in  the CNVDIR.   You  can probably just read in your DIR.DIR
  151.      file to create this, as it is simply the directory of categories which
  152.      is displayed for users following an upload right before they are asked
  153.      to categorize their upload.  We will be referring to this file when we
  154.      get to Config.  
  155.  
  156.      7.   Invoke  CONFIG.    There  are  several parameters that need to be
  157.      changed and we will go through these in order.
  158.  
  159.           a)   Parameter 67:  Enter UPCAT, which is the name of the file we
  160.                just  created.     Do   not  add   the  .HLP  as  RBBS  will
  161.                automatically add the extension.  This file MUST reside with
  162.                the other .HLP files! 
  163.  
  164.           b)   Parameter 181:  Enter the drive of your upload directory.  I
  165.                am not sure that  RBBS uses  this designation,  but it won't
  166.                hurt to have it there!
  167.  
  168.           c)   Parameter  182:    Enter  your master directory name for the
  169.                file to contain recent uploads, i.e. MASTER   (RBBS will add
  170.                the drive\path and extension).
  171.  
  172.           d)   Parameter  183:    Enter  the  drive\path  of the FMS master
  173.                directory.  See paragraph  n. below for  more information on
  174.                this point.
  175.  
  176.  
  177.  
  178.                             - Page 3 -
  179.  
  180.  
  181.  
  182.  
  183.  
  184.           e)   Parameter 184:   Enter the drives available for downloading.
  185.                This is ignored  if  running  subdirectories,  but  it never
  186.                hurts to have them designated here!
  187.  
  188.           f)   Parameter  191:    Enter  the  drive,  path,  and name of an
  189.                alternate directory for uploads to  be  recorded.    This is
  190.                optional,  but   not  a  bad  idea  if  you  want  a  little
  191.                redundancy.  This file is recorded  in the  standard non-FMS
  192.                upload directory format, with each entry appended to the end
  193.                of the file.  Your entry should look something like:
  194.  
  195.                                C:\RBBS\UPLOAD.FIL
  196.  
  197.           g)   Parameter 192:  Enter the  name  of  your  master directory,
  198.                without the DIR extension, i.e. MASTER
  199.  
  200.           h)   Parameter 193:   Set  the minimum security level required to
  201.                designate upload categories.  I have set this to the minimum
  202.                upload  security  level,  as  I want all users to categorize
  203.                their uploads.  If you want all files to go to category "99"
  204.                for recent  uploads, set  this to  your Sysop security. Then
  205.                you will be the only one allowed to  categorize on  a remote
  206.                upload  (which  I  suspect  accounts  for  2%  of your total
  207.                uploads!)
  208.  
  209.           i)   Parameter 194:  If you wish to have  directories in addition
  210.                to FMS,  set this  to YES.   There  may be  a reason to have
  211.                other   directories   in   a   specific   format  available.
  212.                Personally, I  have turned all directory maintenance over to
  213.                FMS, so this is set to NO.
  214.  
  215.           j)   Parameter 195:  Set the default  code for  FMS uploads.   If
  216.                you  do  not  allow  users  to set the category, this is the
  217.                designation given all files.  If you want all uploads  to be
  218.                categorized as  a "099"  or "NEW"  until you get a chance to
  219.                set the category, enter  that designation  here.   Make sure
  220.                this category  is provided for in your DIR.CAT file! This is
  221.                the second field parameter in DIR.CAT, i.e. "099", not "99",
  222.                in my  example.   If you  do allow  users to  set the upload
  223.                category,  I   would  suggest   putting  your  miscellaneous
  224.                category designation  in this  parameter just to have it set
  225.                to a legitimate value.
  226.  
  227.           k)   Parameter  196:    Enter  the  drive  and  filename  of your
  228.                category designation  file, which  is the DIR.CAT we created
  229.                earlier.  You should see C:DIR.CAT,  or whatever  drive this
  230.                file will reside on.  You could place it in your RAM disk if
  231.                you use one.
  232.  
  233.           l)   Parameter 198:  Enter the length of your descriptions, which
  234.                in our case is 43, as described above.  
  235.  
  236.  
  237.                             - Page 4 -
  238.  
  239.  
  240.  
  241.  
  242.  
  243.           m)   Parameter 199:  While not specific to FMS, make sure you set
  244.                the security level needed to view new uploads.
  245.  
  246.           n)   Parameter 200:  Also  an optional  parameter, but  since you
  247.                are going  with FMS, I would suggest putting it and all your
  248.                other .DIR files into one specific subdirectory.
  249.  
  250.           o)   Parameter 216:  This should be UNRESTRICTED to  avoid quirks
  251.                with the  double listing  of the FMS directory under certain
  252.                conditions.
  253.  
  254.      8.   Run it!  And enjoy the extra hours you'll have now that directory
  255.      maintenance has  been substantially reduced!  Thanks, Ken Goosens, for
  256.      your efforts in putting together FMS.   And  thanks to  Tom, Jon, Rod,
  257.      Gene,  Rob,  Terry,  Dave  and  all  the  rest of the beta testers and
  258.      patient wives who have helped in bringing RBBS-PC 15.1A on-line!!
  259.  
  260.           If you run into  any snags,  contact me,  Loren D.  Jones, at the
  261.      Fargo IBM PC Users Group RBBS in Fargo, North Dakota at 701-293-5973!
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.                             - Page 5 -
  297.